﻿<Window xmlns:my="clr-namespace:PersonalClient.Controls"  x:Class="PersonalClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" 
        xmlns:myMap="clr-namespace:MapAPIControl;assembly=MapAPIControl" 
        Loaded="Window_Loaded" 
        WindowStartupLocation="CenterScreen"
        MouseDown="Window_MouseDown"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        SizeToContent="WidthAndHeight"
        WindowStyle="None" ResizeMode="NoResize">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ResourceDict.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border 
        Width="450"
        Background="#FF2A2D32" BorderBrush="White" BorderThickness="2">
        <Grid Grid.Row="1"   Margin="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="80" ></RowDefinition>
                <RowDefinition Height="120" ></RowDefinition>
                <RowDefinition Height="260" ></RowDefinition>
                <!--地图-->
                <RowDefinition Height="200" ></RowDefinition>
                <!--图片-->
                <RowDefinition Height="50" ></RowDefinition>
            </Grid.RowDefinitions>
            <Grid Margin="0" Height="80">
                <Canvas Background="Black">
                    <Border 
                        BorderThickness="1" Name="border1" 
                      Width="80" Height="80" Canvas.Left="10">
                        <Border.Background>
                            <ImageBrush ImageSource="Images/款式图标.jpg"/>
                        </Border.Background>
                    </Border>

                    <Button  
                        Style="{StaticResource ResourceKey=CloseBtn}" 
                        Click="btnClose_Click" 
                        Canvas.Right="0"
                        Canvas.Top="0"></Button>
                    <TextBlock  
                    Height="23"  Name="textBlock1" 
                    Text="在此提交以下资料就可以开始制作了."  Foreground="White" FontSize="20"
                        Canvas.Bottom="0"
                        Canvas.Left="100" />
                </Canvas>
            </Grid>
            <Grid Grid.Row="1" Margin="0,10,0,0" Height="110">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="40"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Horizontal">

                    <Border Background="#FF68C212" Margin="10,0,0,0" Width="60" Height="auto">
                        <TextBlock Name="textBlock2" Text="新郎：" Foreground="White" />
                    </Border>
                    <TextBox 
                      Name="txtBoy" Width="150" Height="auto" Margin="0" />
                    <Border
                        Background="#FF68C212" Width="60" Height="auto" Margin="10,0,0,0">

                        <TextBlock  Name="textBlock3" Text="新娘：" Foreground="White" />
                    </Border>
                    <TextBox 
                      Name="txtGril" Width="150" Height="auto" Margin="0" />
                </StackPanel>
                <StackPanel  Grid.Row="1" Orientation="Horizontal" Margin="0,10,0,0" Height="30">
                    <Border
                        Background="#FF68C212" Width="60" Height="30" Margin="10,0,0,0">
                        <TextBlock  Name="textBlock4" Text="时间：" Foreground="White" />
                    </Border>
                    <TextBox  
                        Name="txtTime" Width="370" Height="30" />
                </StackPanel>
                <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,10,0,0" Height="30">
                    <Border
                        Background="#FF68C212" Width="60" Height="30" Margin="10,0,0,0">
                        <TextBlock  Name="textBlock5" Text="搜" Foreground="White" />
                    </Border>
                    <my:AutoCompletionTextBox x:Name="acTxt" HorizontalAlignment="Stretch" Width="370" />
                </StackPanel>
            </Grid>
            <Grid Grid.Row="2" Width="430" Height="auto" Margin="0,10,0,0">
                <myMap:Map Name="map" ></myMap:Map>
            </Grid>
            <Grid Grid.Row="3" Height="190" Width="430" Margin="0,10,0,0">
                <Border Background="White">
                    <TextBlock>以后是放图片</TextBlock>
                </Border>
            </Grid>
            <Canvas
                 Grid.Row="4" Margin="0,10,0,0">
                <Button 
                    Canvas.Left="90" Content="先存一下" Name="button1" 
                         Background="Orange"
                         Height="30"
                        Style="{StaticResource ResourceKey=BtnSaveProj}" Width="90" Padding="0" />
                <Button 
                    Canvas.Right="90"
                    Height="30"
                    Content="可以了，提交注册吧"    Name="button2" 
                         Style="{StaticResource ResourceKey=BtnBase}" Width="170" />
            </Canvas>
        </Grid>
    </Border>
</Window>
